<% if (post.category == 'frontend') { %>
    <span class="u_frontend">
        前端·
    </span>
<% } else if(post.category == 'backend') { %>
    <span class="u_backend">
        后端·
    </span>
<% } else if(post.category == 'devops') { %>
    <span class="u_devops">
         运维·
    </span>
<% } else{ %>
    <span class="u_other">
            
    </span>
<% } %>